<?
	include_once("fta.201003310000/fta.php");
	fta_registerModules(
		array(
		"cms.201003310000/config/cmsConfig",
		"site/fta/config",
		"FTAWebPage/ftaDefaultWidgets",
		"FTAWebPage/FTAWebPage",
		//"FTAProducts/FTAProducts",
		"FTACart/FTACart",
		"FTACart/FTAOrderContainer",
		"site/components/MAIOrderContainer",
		"site/components/MAIOrderItem",
		"site/components/MAICart"
		)
	);
	
	$cartObject = fta_sendCartHeaders();
	$cartObject->addItemKeys = array("productId", "quantity");
//	$cartObject->addItemRequiredKeys = array("");
	
	//ensure that the cart session is initalised..
	//fta_getCartObject();
	mai_getSharedCartObject();
	
	
	//$cart = fta_getCart();
	$cart =  mai_getCart();

?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="KEYwords" />
<meta name="Description" content="Description" />

<title>Your shopping cart | Mairangi Arts Centre</title>

<?php include ("includes/external-files.php"); ?>

<script type="text/javascript">
	Cufon.replace('h4');
</script>


<link rel="stylesheet" type="text/css" href="/css/cart.css">


<?php include ("includes/analytics.php"); ?>   
</head>

<body id="cart">



<?php include ("includes/head.php"); ?>





<div id="container">


	<div id="content">
    	

     <h1>Your shopping cart</h1>    
        
	<?php echo $cart; ?>        
        
        

        
   
   
   
   </div><!-- Content ends -->


    
    
</div><!-- Container ends -->




<?php include ("includes/foot.php"); ?>




<?php 
	echo fta_cartGoogleAnalytics(); 
	fta_cartCleanup(); 
?>	
</body>

</html>
